//
//  MFAJSONUtility.m
//  NewMissFresh
//
//  Created by 董宝君 on 2019/6/18.
//  Copyright © 2019 com.missfresh. All rights reserved.
//

#import "MFAJSONUtility.h"

@implementation MFAJSONUtility

+ (NSString *)convertObjectToJSONString:(NSDictionary *)event {
    NSError *error = nil;
    NSData *data = [NSJSONSerialization dataWithJSONObject:event options:NSJSONWritingPrettyPrinted error:&error];
    
    NSString *result = @"";
    if(data && !error){
        result = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
    }
    return result;
}

@end
